!lm12
!rm75
Assembly Listings on TEXT Files............Bob Sander-Cederlof

Today Jules Gilder called, asking for patches to allow sending the assembly listing to a TEXT file.  He is in the process of writing a book, and wanted the listings on TEXT files so they could be automatically typeset.

My first response was a familiar one:  "It is a very difficult problem, because of the interaction of .IN and .TF files."

"But I don't need .TF or .IN files!", he swiftly parried.

Suddenly in a flash of insight I saw that it could be EASILY done.  All that is needed is to patch the .TF directive so that it opens a TEXT file, but does not set the TF-flag.  Then all listing output will go to the text file, and the object code will go to the current origin or target address.

Here are the patches for the motherboard version:

       :$2998:A5 60 D0 03 20 6A 2A 4C 04 1F

And the language card version:

       :$C083 C083 EAE4:A5 60 D0 03 20 B6 EB 4C 50 E0

Note that the two "C083's" above write-enable the language card so the patches will be effective.

After the patches are installed, a .TF directive will direct the listing to your text file.  Here is an example:

!lm+5
       .TF T.LISTING
SAMPLE LDA #3
       STA $06
       RTS
!lm-5

Just remember that the normal use of .TF is not available when this patch is in place; also that .IN should not be used.  Using .IN would turn off the listing output, directing it back to the screen.
